package org.example.joinblog.controller;


import org.example.joinblog.common.ResponseResult;
import org.example.joinblog.domain.PO.User;
import org.example.joinblog.mapper.UserMapper;
import org.example.joinblog.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserController
{
    @Autowired
    private UserServiceImpl userService;

    @Autowired
    private UserMapper userMapper;

    @GetMapping
    public ResponseResult<User> test(){
        User user = userMapper.selectById(1);
        return ResponseResult.success(user);
    }
}

